/**
 * 
 */
package org.crown.kings.jsf.formatters;

import org.apache.commons.lang.StringUtils;

/**
 * @author nagood
 * 
 */
public class NullFormatterImpl implements BeanFormatter
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6626262425451299422L;

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.crown.kings.jsf.formatters.BeanFormatter#format(java.lang.Object)
	 */
	public String format(final Object o)
	{
		return (o == null) ? StringUtils.EMPTY : o.toString();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.crown.kings.jsf.formatters.BeanFormatter#parse(java.lang.String)
	 */
	public Object parse(final String s) throws BeanFormatException
	{
		return null;
	}

}
